import Vue from 'vue'
import Router from 'vue-router'
import Hello from './components/HelloWorld.vue'

Vue.use(Router)

export default new Router({
  mode: 'hash',
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('./example/Outter.vue'),
      children: [
        {
          path: '/test',
          name: 'test',
          component: () => import('./components/Test.vue')
        },
        // 风格说明
        {
          path: '/fgsm',
          name: 'docs',
          component:  () => import('./components/Docs.vue')
        },
        {
          path: '/hello',
          name: 'hello',
          component: Hello
        },
        {
          path: '/toastpage',
          name: 'toastPage',
          component: () => import('./example/ToastPage.vue')
        },
        {
          path: '*',
          name: 'nofound',
          component: () => import('./example/NoFound.vue')
        }
      ]
    },
    
  ]
})
